﻿using System;
using Volo.Abp.Modularity;
using Volo.Abp.Application;
using MyabpDDD.Demo.EntityFrameworkCore;
using MyabpDDD.Demo.Domain;
using Volo.Abp.AutoMapper;
using MyabpDDD.Demo.Application.FuelmanagementtableLY.Dto;

namespace MyabpDDD.Demo.Application
{
    [DependsOn(typeof(AbpDddApplicationModule),typeof(MyabpDDDDemoDomainModule),typeof(MyabpDDDDemoEntityFrameworkCoreModule),typeof(AbpAutoMapperModule))]
    public class MyabpDDDDemoApplicationModule:AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpAutoMapperOptions>(options =>
            {
                //Add all mappings defined in the assembly of the MyModule class
                options.AddProfile<FuelmanagementtableAppProfile>();
                //options.AddProfile<FuelmanagementtableAppProfile>();
                options.AddProfile<AgenttableAppProfile>();
            });
        }
    }
}
